<template>
  <div class="app-container">
    <el-row>
      <!-- 树结构 -->
      <el-col :span="6" :xs="24">
        <div class="mainbox-left">
          <!-- <menuList /> -->
          <menuBtnTree @treeClick="treeClick" />
        </div>
      </el-col>
      <el-col :span="18" :xs="24" style="padding-left: 0px">
        <div class="mainbox">
          <resourceTable :id="id" ref="memberRef" :menu-btn-info="menuBtnInfo" />
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import menuBtnTree from './components/menuBtnTree.vue'
// import menuList from './components/menuList.vue'
import resourceTable from './components/resourceTable.vue'

export default {
  name: 'Interfacepermission',
  components: { menuBtnTree, resourceTable },
  data() {
    return {
      activeName: 'first',
      menuBtnInfo: {},
      id: ''
    }
  },
  methods: {
    treeClick(data) {
      this.menuBtnInfo = data
      this.id = data.id
      // this.activeName = 'first'
      // this.$refs.memberRef.getList()
    }
  }
}
</script>
  <style scoped lang="scss">
  ::v-deep .el-tabs__item {
    padding: 0 10px;
  }

  ::v-deep .el-tabs__header {
    margin: 0;
  }

  .nameSpan {
    font-size: 20px;
    font-weight: 500;
    color: #131414;
    line-height: 28px;
  }

  .describeSpan {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 400;
    color: #131414;
    line-height: 24px;
  }
  </style>

